class PositionStandardAssignment < ActiveRecord::Base
  composed_of :requre_certificate_organ, class_name: 'RequireCertificateOrgan', mapping: %w(requre_certificate_organ name),
              constructor: Proc.new { |requre_certificate_organ| RequireCertificateOrgan.find_by_name(requre_certificate_organ) }

  validates :organization_id, :uniqueness => {:scope => :requre_certificate_organ}
end
